#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>

#define NOISY_TEST 1


int main() {
	int r;
	int errornum=0;
	int card;

	int k[10] = {adventurer, council_room, feast, gardens, mine,
		       remodel, smithy, village, baron, great_hall};

	struct gameState G;

	r = initializeGame(2, k, 1, &G);
	if ( r != 0) {
		errornum++;
	}

	//card, choice1, choice2, choice3, state, handPos, bonus
	card = cardEffect(smithy, 10, 10, 10, &G, 1, 0);

	//smithy adds 3 cards and discards 1 card
	printf("smithy: I should have 5 cards plus 3 new minus 1 discarded for a total of 7 cards. My total is = %d\n", G.handCount[0]);
	if (card != 7){
		errornum++;
	}


	//did I discard a card?
	printf("I should have played 1 card. My total is = %d\n", G.playedCardCount);
		if (card != 1){
			errornum++;
		}


	 printf ("ALL TESTS OK\n");

	return 0;
}
